/*	
	WeaponDisruptor.h
	(c)2004 Palestar, Richard Lyle
*/

#ifndef WEAPON_DISRUPTOR_H
#define WEAPON_DISRUPTOR_H

#include "Game/Constants.h"
#include "Game/GadgetBeamWeapon.h"



//----------------------------------------------------------------------------

class WeaponDisruptor : public GadgetBeamWeapon
{
public:
	DECLARE_WIDGET_CLASS();

	// NounGadget interface
	Type type() const
	{
		return WEAPON_CLOSE;
	}
	int maxDamage() const
	{
		return (2000 + (level() * 100))* enhancementModifier( enhancementSystem(), NounEnhancement::MT_DAMAGE );
	}
	int addValue() const
	{
		return 2500;
	}
	int buildTechnology() const
	{
		return 35;
	}
	int	buildCost() const
	{
		return 40;
	}
	dword buildFlags() const
	{
		return NounPlanet::FLAG_METALS;
	}
	int buildTime() const
	{
		return 160;
	}
	// GadgetWeapon interface
	int energyCost() const
	{
		return (700 + (level() * 132))* enhancementModifier( enhancementSystem(), NounEnhancement::MT_ENERGY );
	}
	int energyCharge() const
	{
		return (7 + ceil (level() * 0.5))* enhancementModifier( enhancementSystem(), NounEnhancement::MT_COOLDOWN);
	}
	int damage() const
	{	
		return (20 + (level() * 5))* enhancementModifier( enhancementSystem(), NounEnhancement::MT_DAMAGE );
	}
	int damageRandom() const
	{
		return (8 + (level() * 2))* enhancementModifier( enhancementSystem(), NounEnhancement::MT_DAMAGE );
	}
	int damageFalloff() const
	{
		return 0;
	}
	dword damageType() const
	{
		return DAMAGE_ENERGY;
	}
	int duration() const
	{
		return 60 + (level() * 3);
	}
	float length() const
	{
		return (145.0f + (level() * 9))* enhancementModifier( enhancementSystem(), NounEnhancement::MT_RANGE );
	}
	int repairRate() const
	{
		return 3;
	}
};

//----------------------------------------------------------------------------



#endif

//----------------------------------------------------------------------------
// EOF
